package cn.util;

import java.util.Date;

public class Pagination {
	// 第几页
	private int pageIndex;
	// 每页大小
	private int pageSize;
	// 总数
	private int rowTotal;
	// 总共多少页
	private int pageTotal;
	
	private String search;
	
	private int id;
	
	private int startRow;
	
	private int aid;
	
	private String startDate;
	
	private String endDate;
	
	private String status;
	
	private String aUserName;
	
	private String dUserName;
	
	public Pagination(int pageIndex, int pageSize, int rowTotal) {
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
		this.rowTotal = rowTotal;
	}
	public int getRowTotal() {
		return rowTotal;
	}
	public void setRowTotal(int rowTotal) {
		this.rowTotal = rowTotal;
	}
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageTotal() {
		int pageTotal = 0;
		if (rowTotal % pageSize == 0) {
			pageTotal = this.rowTotal / this.pageSize;
		} else {
			pageTotal = rowTotal / pageSize + 1;
		}
		return pageTotal;
	}
	public void setPageTotal(int pageTotal) {
		this.pageTotal = pageTotal;
	}
	public int getStartRow() {
		return startRow;
	}
	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}
	public String getSearch() {
		return search;
	}
	public void setSearch(String search) {
		this.search = search;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	
	
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getaUserName() {
		return aUserName;
	}
	public void setaUserName(String aUserName) {
		this.aUserName = aUserName;
	}
	public String getdUserName() {
		return dUserName;
	}
	public void setdUserName(String dUserName) {
		this.dUserName = dUserName;
	}
	
	
}
